package com.cn.ycy.proxy.jdk;

public class Student implements Person {

  private String name = "nickname";

  public Student() {
  }

  public Student(String name) {
    this.name = name;
  }

  @Override
  public void doWork() {
    System.out.println(this.name + " doWork!!!");
  }

  /**
   * 用来测试cglib 无法继承 final 修饰的方法。
   */
  public final void doWorkfinal() {
    System.out.println(this.name + " doWorkfinal!!!");
  }

}
